public abstract class Pet {

	
	
	protected   String name;
	protected	int age;
	protected 	boolean alive;
	
	public abstract void speak();
		
	
	
	public void die(){
		System.out.println("diee......");
	}
	public void eat(){
		System.out.println("eaatt.....");
	}
	
	// construct
	public Pet(int j,String name, boolean a){
	this.name=name;
	this.age=j;
	this.alive=a;
	}
	
	// to return the name
	public String getname(){
		return name;
	}
	
		
}


